package com.hxy.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxy.basic.domain.BaseDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BaseDomain {

    private String name;

    private String resources;

    private BigDecimal costprice;

    private BigDecimal saleprice;
    /***
     * 下架
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    /***
     * 上架
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime = new Date();

    private Long state;

    /***
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();

    private Long salecount;

    /**
     * 宠物图片的路径宠物细节
     */
    private ProductDetail productDetail;
}
